import Mock from 'mockjs'
import './modules/system/role.js'
import './modules/test/Employee.js'

import {menus} from '@/router/modules/menus.js'


/**
 *  1 ·数据模拟
 *  2. ajax拦截
 * */


const users = Mock.mock({
    "list|5":[{
         "userId|+1":1,
         username:"@name",
         remark:"@sentence(2)",
    }]
})





Mock.mock('http://test.org/login/menus','get',[
    menus[1]
])


Mock.mock('http://test.org/users','get',users.list)